package com.jinly.ryder.jenkins.service;

import com.jinly.ryder.jenkins.service.model.JenkinsBuild;
import com.jinly.ryder.jenkins.service.model.JenkinsQueue;
import com.jinly.ryder.jenkins.service.model.JenkinsStage;

import java.util.List;

public interface JenkinsBuildService {

    String build(String jobName);

    JenkinsQueue getQueue(String queueId);

    JenkinsBuild getBuild(String jobName, Integer buildNo);

    String getBuildConsole(String jobName, Integer buildNo);

    List<JenkinsStage> getBuildStages(String jobName, Integer buildNo);
}
